home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / manual-p / man_db-l.2 / text0000.txt < prev   
Encoding:
Text File  |  1996-11-17  |  3.0 KB  |  106 lines

  1.  
  2. On Sat, 23 Dec 1995, Kevin Donovan wrote:
  3.  
  4. > I installed libc-5.3.0 last evening from libc-5.3.0.bin.tar.gz and I
  5. > can't use the man command to read manual pages.  libc-5.2.19 gave the
  6. > same problem.  Man works fine with libc-5.2.18, and I have now gone
  7. > back to 5.2.18.
  8. > I am using version 2.7.2 of gcc (the "old" gcc), which I compiled
  9. > myself.  Kernel version is 1.3.47.  The man pager I use keeps
  10. > references to the pages in dbm files.  I can execute /usr/bin/man, but
  11. > it crashes if I try to read any documents.  If I type "man --version",
  12. > it responds:
  13. > man, version 2.3.5, db 2.3.1, April 21st, 1995 (G.Wilford@ee.surrey.ac.uk)
  14. > If you to need to know more, please let me know.
  15. > Kevin
  16.  
  17. The new malloc from Doug Lea caught a bug in
  18.  
  19. man, version 2.3.10, db 2.3.1, July 12th, 1995 (G.Wilford@ee.surrey.ac.uk)
  20.  
  21. The setlocale man page under Linux doesn't say the string returned by
  22. setlocale () will be overwritten by a subsequent call to setlocale(),
  23. which is mentioned in the SunOS version.
  24.  
  25. BTW, libc 5.3.0 looks pretty good. If you find your program doesn't
  26. work anymore with 5.3.0, please debug your program first. man
  27. is the second bogus libc 5.3.0 report I got.
  28.  
  29.  
  30. H.J.
  31. -----
  32. diff -rc man-2.3.10/src/catman.c man-2.3.10.fixed/src/catman.c
  33. *** man-2.3.10/src/catman.c    Wed Sep 20 14:31:58 1995
  34. --- man-2.3.10.fixed/src/catman.c    Sat Dec 23 12:54:52 1995
  35. ***************
  36. *** 387,392 ****
  37. --- 387,396 ----
  38.   
  39.   #ifdef HAVE_SETLOCALE    
  40.       locale = NLS_INIT;
  41. +     if (locale)
  42. +     {
  43. +         locale = xstrdup (locale);
  44. +     }
  45.   #endif /* HAVE_SETLOCALE */
  46.   
  47.       while ((c = getopt_long (argc, argv, args,
  48. Only in man-2.3.10.fixed/src: lexgrog.c
  49. diff -rc man-2.3.10/src/man.c man-2.3.10.fixed/src/man.c
  50. *** man-2.3.10/src/man.c    Wed Sep 20 14:31:58 1995
  51. --- man-2.3.10.fixed/src/man.c    Sat Dec 23 12:50:06 1995
  52. ***************
  53. *** 675,680 ****
  54. --- 675,684 ----
  55.       /* initialise the locale */
  56.   #ifdef HAVE_SETLOCALE
  57.       internal_locale = NLS_INIT;
  58. +     if (internal_locale)
  59. +     {
  60. +         internal_locale = xstrdup (internal_locale);
  61. +     }
  62.   #endif /* HAVE_SETLOCALE */
  63.   
  64.   /* export argv, it might be needed when invoking the vendor supplied browser */
  65. ***************
  66. *** 730,735 ****
  67. --- 734,743 ----
  68.          issued as an argument or in $MANOPT */
  69.       if (locale) {
  70.           internal_locale = setlocale(LC_MESSAGES, locale);
  71. +         if (internal_locale)
  72. +         {
  73. +             internal_locale = xstrdup (internal_locale);
  74. +         }
  75.   #  ifdef NLS
  76.           NLS_CLOSE;
  77.           catfd = catopen("man_db", MCLoadBySet);
  78. diff -rc man-2.3.10/src/whatis.c man-2.3.10.fixed/src/whatis.c
  79. *** man-2.3.10/src/whatis.c    Wed Sep 20 14:31:59 1995
  80. --- man-2.3.10.fixed/src/whatis.c    Sat Dec 23 12:54:39 1995
  81. ***************
  82. *** 497,502 ****
  83. --- 497,506 ----
  84.   
  85.   #ifdef HAVE_SETLOCALE
  86.       locale = NLS_INIT;
  87. +     if (locale)
  88. +     {
  89. +         locale = xstrdup (locale);
  90. +     }
  91.   #endif /* HAVE_SETLOCALE */
  92.                       
  93.       while ((c = getopt_long (argc, argv, args,
  94.  
  95.  
  96. Wilf.
  97. -- 
  98.     Dept. of Electronic Eng.    Phone: Mon-Wed: 01483-259826
  99.     University of Surrey        Phone: Thu-Fri: 01483-300800 x2259
  100.     Guildford            Fax: 01483-34139    
  101.     Surrey GU2 5XH.            email: g.wilford@ee.surrey.ac.uk
  102.